﻿<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
	<title>new Document</title>
	<style>
		.error{
			color:red;
		}
	</style>
</head>
<body>
<form action="#" name="myform" method="get">
	<table align="center"  cellspacing=0 cellpadding=10>
		<tr>
			<td align="center" colspan=2>欢迎注册易买网</td>
		</tr>
		<tr>
			<td align="right">用户名：</td>
			<td><input name="username" type="text"/></td>
			<td id="error1" class="error"></td>
		</tr>
		<tr>
			<td align="right">密码：</td>
			<td><input name="password" type="password"/></td>
			<td id="error2" class="error"></td>
		</tr>
		<tr>
			<td align="right">邮箱：</td>
			<td><input name="email" type="text"/></td>
			<td id="error3" class="error"></td>
		</tr>
		<tr>
			<td align="right">手机号：</td>
			<td><input name="phonenum" type="text"/></td>
			<td id="error4" class="error"></td>
		</tr>
		<tr>
			<td align="right">身份证：</td>
			<td><input name="creditID" type="text"/></td>
			<td id="error5" class="error"></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td><input style="width:160px;" type="submit" value="注册"/ ></td>
		</tr>
	</table>
</form>
	<script>
	
	// 在这里写表单验证的JS代码
	document.myform.onsubmit=function(){

	
	}
	</script>
</body>
</html>